﻿namespace SLNGP.Core.Genes
{
    public class VariableGeneDefinition<T> : IGeneDefinition
    {
        private string _name;
        public VariableGeneDefinition(string name)
        {
            _name = name;
        }

        public IGene Create()
        {
            return new VariableGene<T>(_name) { GeneDefinition = this };
        }
    }
}